/* graphics.h */

#ifndef GRAPHICS_H_FILE
#define GRAPHICS_H_FILE

#include "path.h"

extern SDL_Surface *screen;
extern SDL_Surface *map_image;
extern SDL_Surface *pony_image;

typedef struct {
  int shadow_point;
  int shadow_point_x1;
  int shadow_point_y1;
  int shadow_point_x2;
  int shadow_point_y2;

  int shadow_segment;
  int shadow_segment_x1;
  int shadow_segment_y1;
  int shadow_segment_x2;
  int shadow_segment_y2;
} EFFECTS;

void init_video(int w, int h, int depth, int fullscreen);
void load_images(const char *bg_image_name);
int load_map_bg_image(const char *name);
void draw_arena(int pos_x, int pos_y, PATH *path, EFFECTS *effects);
void draw_rectangle(SDL_Surface *surf, int x, int y, int w, int h, unsigned int color);

#endif /* GRAPHICS_H_FILE */
